package xcmg.device.dao.mapper.delivery;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.delivery.DeliveryReceiptDO;
import xcmg.device.dao.entity.delivery.DeliveryReceiptLogisticsDO;
import xcmg.device.service.vo.delivery.DeliveryReceiptLogisticsVO;
import xcmg.device.service.vo.delivery.DeliveryReceiptVO;

import java.util.List;

@Mapper
public interface DeliveryReceiptLogisticsMapper {

    int add(DeliveryReceiptLogisticsDO record);

    List<DeliveryReceiptLogisticsDO> list(@Param("billNo") String billNo);

    DeliveryReceiptLogisticsDO item(String id);

    int remove(@Param("ids") List<String> ids);

    int delete(String id);

    int deleteByBillNo(@Param("billNo") String billNo);

    /**
     *
     * @param billNo
     * @param dateStr yyyyMMdd
     * @return
     */
    int countByDate(@Param("billNo") String billNo, @Param("dateStr") String dateStr);

}
